php hide credit card middle numbers

44

$email = '[email protected]';
$email =  substr_replace($email,"xxxxxxxxxx",3,10);

$contact = "9899784414";
$contact = substr_replace($contact,"xxxxxx",2,6);

echo $email;
echo "<br/>";
echo $contact;

Comments

Submit
0 Comments